
<form method="post" name=_FRM>
<input type=hidden name=bcode value=''>
<input type=hidden name=confx value=''>
<input type=hidden name=part value="<?php echo $part;?>">
<input type=hidden name=class_type value="<?php echo $class_type;?>">
<input type=hidden name=selMode value="<?php echo $selMode;?>">
<input type=hidden name=action_ value="<?php echo $action_;?>">
<input type=hidden name=itemEvent value="<?php echo $itemEvent;?>">
<input type=hidden name=bbo value="<?php echo $bbo;?>">
<table border=0 width=100% align=center cellspacing=0 cellpadding=0>
<tr><td colspan=2 class=header align=center width=100%>REFERENCES</td></tr>

<tr>
        <td colspan=2 align=center>
</td>
</tr>
	<tr><td colspan=2 class=header2 align=center>Chart of Accounts</td></tr>
	</table>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0>

<tr><td colspan=2 ><br></td></tr>
                <tr width=100%>
                        <td> &nbsp </td>
                </tr>
                                                                                                                                                            
                <tr width=100%>
                        <td align=right valign=top> Account Description </td>
                        <td align=left valign=top> &nbsp
                        
<?php

echo get_select_coa($dbLink,'nAcctDesc','ebpls_buss_tfo','tfoid','tfodesc',$ad,'true','','');

?>
</td>
                        
                       
                        <td> &nbsp </td>
                </tr>
		<tr width=90%>
                        <td align=right valign=top> Account Code </td>
                        <td align=left valign=top> &nbsp <input type=text maxlength=255 name=acode class=text180 value='<?php echo $ac; ?>'></td>
                        <td> &nbsp </td>
                </tr>
                <tr width=90%>
                        <td align=right valign=top> Account Type </td>
                        <td align=left valign=top> &nbsp
                        <select name=atype>

                        <option value=DEBIT <?php echo $dat; ?> >DEBIT</option>
                        <option value=CREDIT <?php echo $dat1; ?>>CREDIT</option>
                        </select>
                        </td>
                        <td> &nbsp </td>
                </tr>
        </table>
        <table align=center border=0 cellspacing=0 cellpadding=0 width=90%>
                <tr width=90%>
                        <td align=center valign=top>
                        &nbsp</td>
                </tr>
                <tr width=90%>
                        <td align=center valign=top>
                        <input type=hidden  name=sb>
			<input type=button value='Save' onclick='VerifyCOA();'>
                        <input type=Button value=Cancel onClick='CancelCat();'>
                        <input type=Reset value=Reset onClick='_FRM.nAcctDesc.focus();'>
                        &nbsp<br><br></td>
                        <body onload='_FRM.nAcctDesc.focus();'></body>
                </tr>
        </table>
<?php
include'includes/chart_pager.php';
?>
                </tr>
        </table>
<tr>
<td colspan=2 align=center><br>
<?php
$data_item=1;
include'tablemenu-inc.php';
?>
</td>
</tr>
</table>
<script language='javascript'>
function VerifyCOA()
{
                                                                                                                                                                                                         
                var a = document._FRM;
                                                                                                                                                                                                         
                if (isBlank(a.acode.value)) {
                                                                                                                                                                                                         
                        alert ("Input Valid Account Code.");
                        a.acode.focus();
                        a.acode.select();
                        return false;
                }
                                                                                                                                                                                                         
                if (a.acode.value.length>15) {
                                                                                                                                                                                                         
                        alert ("Account Code Exceeds Max Length");
                        a.acode.focus();
                        a.acode.select();
                        return false;
                }
                                                                                                                                                                                                         
                a.sb.value='Submit';
                a.submit();
                return true;
}



</script>


